package cn.water.confiig;

import cn.water.bean.Bean1;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfiguration1 {
    public MyConfiguration1() {
        System.out.println("MyConfiguration1被容器加载了...");
    }
    @Bean
    public Bean1 bean1(){
        return new Bean1();
    }
}
